@extends('admin.layouts.index')
@section('title', "批量切换链接使用的小程序")
@section('content')

<div class="row">
    <div class="col-md-12">
        <form id="comment-form" method="POST" action="{{ URL::current() }}">
            <div class="m-card">
                <div class="m-card-header header-bottom">批量切换链接小程序</div>
                <div class="m-form-item">
                    <label><b>*</b>原微信小程序:</label>
                    <div class="m-col-3">
                        <select class="m-select" name="oldappid">
                            @forelse($miniapps as $miniapp)
                            <option value="{{ $miniapp->appid }}">{{ $miniapp->name }}</option>
                            @empty
                            <option value="">当前暂无小程序</option>
                            @endforelse
                        </select>
                        @csrf
                    </div>
                <div class="m-form-item">
                    <label><b>*</b>切换到的微信小程序:</label>
                    <div class="m-col-3">
                        <select class="m-select" name="appid">
                            @forelse($miniapps as $miniapp)
                            <option value="{{ $miniapp->appid }}">{{ $miniapp->name }}</option>
                            @empty
                            <option value="">当前暂无小程序</option>
                            @endforelse
                        </select>
                    </div>
                </div>                
                <div class="m-form-item">
                    <button class="m-form-btn">立即批量切换</button>
                </div>
            </div>
        </form>
    </div>
</div>

@endsection
